//评论
import { ADMIN } from './api';
import { request, METHOD } from '@/utils/request';
//获取评论
/* 
blogId	Number	
博客id

projectId	Number	
项目id

limit	Number	
返回评论量

offset	Number	
评论偏移量
*/
export async function getCommentApi(params) {
  return request(ADMIN + '/getProjectComment', METHOD.GET, params);
}

//删除评论
/* 
commentId	Number	
评论id

blogId	Number	
博客id

projectId	Number	
项目id
*/
export async function delCommentApi(params) {
  return request(ADMIN + '/deleteComment/', METHOD.DELETE, params.commentId);
}
export default {
  getCommentApi,
  delCommentApi,
};
